package cn.itsource.feign.clients;

import cn.itsource.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "SERVICE-USER",fallbackFactory = PayFallBackFactory.class)
public interface UserFeignClient {
    @RequestMapping("/getuser/{id}")
    User getUser(@PathVariable("id") long id);
}
